package com.xiaohai.big_event_system.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;


//@TableField("gender")
//private GenderEnum gender;

@AllArgsConstructor
@Getter
public enum Gender {
    MALE(1, "男"),
    FEMALE(2, "女");

    @EnumValue // 指定映射字段,用于数据库存储
    private final Integer value;

    @JsonValue // 指定返回值,用于返回给前端
    private final String desc;
}
